package com.iwomy.envpro.platform.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.iwomy.envpro.platform.entity.BasicNotificationRecordEntity;
import com.iwomy.envpro.platform.mapper.BasicNotificationRecordMapper;
import com.iwomy.envpro.platform.service.BasicNotificationRecordService;
import org.springframework.stereotype.Service;

/**
 * 通知记录
 *
 * @author pig
 * @date 2023-12-01 15:24:54
 */
@Service
public class BasicNotificationRecordServiceImpl extends ServiceImpl<BasicNotificationRecordMapper, BasicNotificationRecordEntity> implements BasicNotificationRecordService {
	@Override
	public BasicNotificationRecordEntity oneBySupplierIdentifying(String supplierIdentifying) {
		LambdaQueryWrapper<BasicNotificationRecordEntity> queryWrapper = Wrappers.lambdaQuery();
		queryWrapper.eq(BasicNotificationRecordEntity::getSupplierIdentifying, supplierIdentifying);
		return this.getOne(queryWrapper);
	}
}